﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="SplitButtonRibbonControl"
    RegistrationType="ContentType"
    RegistrationId="0x0110"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
           Location="Ribbon.EditingTools.CPEditTab.Styles.Controls._children">
          <SplitButton
            Id="Ribbon.SplitButton"
            Sequence="0"
            Alt="Ribbon.SplitButton.Controls.CPFlyout_ALT"
            LabelText="Code Syntax"
            PopulateDynamically="false"
            PopulateOnlyOnce="true"
            TemplateAlias="o1"
            Image16by16="/_layouts/Softlanding.SyntaxHighlighter/objectscript_16.png"
            Image32by32="/_layouts/Softlanding.SyntaxHighlighter/objectscript_32.png" 
            ToolTipTitle="Code Syntax"
            ToolTipDescription="Apply Code Block Style"
            Command="ApplyDefault">
            <Menu Id="Ribbon.SplitButton.Menu">
              <MenuSection Id="Ribbon.SplitButton.Menu.MenuSection">
                <Controls Id="Ribbon.SplitButton.Menu.MenuSection.Controls">
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button1"
                   Alt=""
                   Sequence="0"
                   Command="ApplyCSharp"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="C#"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button2"
                   Alt=""
                   Sequence="0"
                   Command="ApplyJS"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Javascript"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button3"
                   Alt=""
                   Sequence="0"
                   Command="ApplyCPP"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="C/C++"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button4"
                   Alt=""
                   Sequence="0"
                   Command="ApplyCSS"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="CSS"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button5"
                   Alt=""
                   Sequence="0"
                   Command="ApplyJava"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Java"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button6"
                   Alt=""
                   Sequence="0"
                   Command="ApplyPerl"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Perl"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button7"
                   Alt=""
                   Sequence="0"
                   Command="ApplyPHP"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="PHP"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button8"
                   Alt=""
                   Sequence="0"
                   Command="ApplyPlainText"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Plain Text"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button9"
                   Alt=""
                   Sequence="0"
                   Command="ApplyPowerShell"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="PowerShell"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button10"
                   Alt=""
                   Sequence="0"
                   Command="ApplyPython"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Python"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button11"
                   Alt=""
                   Sequence="0"
                   Command="ApplySQL"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="SQL"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button12"
                   Alt=""
                   Sequence="0"
                   Command="ApplyVB"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="Visual Basic"
                   TemplateAlias="o1"/>
                  <Button
                   Id="Ribbon.SplitButton.Menu.MenuSection.Controls.Button13"
                   Alt=""
                   Sequence="0"
                   Command="ApplyXML"
                   ToolTipTitle=""
                   ToolTipDescription=""
                   LabelText="XML"
                   TemplateAlias="o1"/>
                </Controls>
              </MenuSection>
            </Menu>
          </SplitButton>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="ApplyDefault"
         CommandAction="javascript:ApplyCodeBlock('defaultbutton');"
         />
        <CommandUIHandler
         Command="ApplyCSharp"
         CommandAction="javascript:ApplyCodeBlock('csharp');"
         />
        <CommandUIHandler
         Command="ApplyJS"
         CommandAction="javascript:ApplyCodeBlock('js');"
         />
        <CommandUIHandler
         Command="ApplyCPP"
         CommandAction="javascript:ApplyCodeBlock('cpp');"
         />
        <CommandUIHandler
         Command="ApplyCSS"
         CommandAction="javascript:ApplyCodeBlock('css');"
         />
        <CommandUIHandler
          Command="ApplyJava"
          CommandAction="javascript:ApplyCodeBlock('java');"
         />
        <CommandUIHandler
          Command="ApplyPerl"
          CommandAction="javascript:ApplyCodeBlock('perl');"
         />
        <CommandUIHandler
          Command="ApplyPHP"
          CommandAction="javascript:ApplyCodeBlock('php');"
         />
        <CommandUIHandler
          Command="ApplyPlainText"
          CommandAction="javascript:ApplyCodeBlock('plain');"
         />
        <CommandUIHandler
          Command="ApplyPowerShell"
          CommandAction="javascript:ApplyCodeBlock('powershell');"
         />
        <CommandUIHandler
          Command="ApplyPython"
          CommandAction="javascript:ApplyCodeBlock('python');"
         />
        <CommandUIHandler
          Command="ApplySQL"
          CommandAction="javascript:ApplyCodeBlock('sql');"
         />
        <CommandUIHandler
          Command="ApplyVB"
          CommandAction="javascript:ApplyCodeBlock('vb');"
         />
        <CommandUIHandler
          Command="ApplyXML"
          CommandAction="javascript:ApplyCodeBlock('xml');"
         />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <Control Id="AdditionalPageHead"
    ControlAssembly="Softlanding.SyntaxHighlighter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=435f96b4cb1895d5"
    ControlClass="Softlanding.SyntaxHighlighter.SyntaxHighlighterDelegate"/>
</Elements>